﻿<%@ Page Language="vb" AutoEventWireup="false" CodeFile="uMESPartWorkingReport.aspx.vb"
    MaintainScrollPositionOnPostback="true" Inherits="InSiteWebApplication.uMESPartWorkingReport" %>

<%@ Register Src="../../../uMESCustomControls/pageTurning/pageTurning.ascx" TagName="pageTurning"
    TagPrefix="uPT" %>
<%@ Register Assembly="Infragistics4.WebUI.WebDateChooser.v11.1, Version=11.1.20111.2158, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.WebSchedule" TagPrefix="igsch" %>
<%@ Register Assembly="Infragistics4.WebUI.WebDataInput.v11.1, Version=11.1.20111.2158, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.WebDataInput" TagPrefix="igtxt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>零件进度表</title>
    <script language="javascript" type="text/javascript">
        function openSpecDetailwinsNew(Containerid, Specid, Sequence, WorkFlowStepID, stepName, typeValue) {
            var ScreenWidth = screen.width;
            var ScreenHeight = screen.height;
            var width = 1020;
            var height = 800;
            var left = (ScreenWidth - width) / 2;
            var top = (ScreenHeight - height) / 2;
            window.showModalDialog("uLMSReportWorkingDetail.aspx?v=new Date().getTime()&Containerid=" + Containerid + '&Specid=' + Specid + '&Sequence=' + Sequence + '&WorkFlowStepID=' + WorkFlowStepID + '&WorkFlowStepName=' + encodeURI(stepName) + '&WSType=' + typeValue, "生产情况明细", "dialogWidth:" + width + "px; dialogHeight:" + height + "px;dialogLeft:" + left + "px;dialogTop:" + top + "px; edge:Raised; center: Yes; resizable: No; status: No;")
        }
        function openConDetailwins(Containerid) {
            window.showModalDialog("uMESContainerSelectInfo.aspx?v=new Date().getTime()&Containerid=" + Containerid, "批次信息汇总", "dialogWidth:850px; dialogHeight:700px;dialogLeft:150px;dialogTop:200px; edge:Raised; center: Yes; resizable: NO; status: No;");
        }

    </script>
</head>
<body class="FormBody" id="bodyControl" runat="server">
    <script language="javascript" type="text/javascript" src="../../../javascript/DateControl.js"></script>
    <form id="formControl" method="post" runat="server">
    <div class="ufcSectionStyle">
        <span class="ufcSectionSpanStyle">查询区域</span>
    </div>
    <table border="0" cellpadding="5" cellspacing="0" style="z-index: 103; position: absolute;
        left: 0px; top: 20px;">
        <tr>
            <td valign="bottom">
                <fb:Container ID="txtScannerContainer" runat="server" LabelControl-Text="扫描流水卡" LabelControl-ForeColor="Red" AutoPostBack ="true" TextControl-Width="150px" />
            </td>
            <td valign="bottom">
                <fb:TextBox ID="txtMfgOrderName" runat="server" LabelControl-Text="生产订单" TextControl-Width="120px"/>
            </td>
            <td valign="bottom">
                <fb:TextBox ID="txtContainerName" runat="server" LabelControl-Text="批次号" DependsOn="" TextControl-Width="200px"
                    EnableSmartScan="True" Encryption="True" FieldExpressions="" ForceSubmit="False"
                    HideLabel="False" LabelControl-CssClass="LabelControl" LabelControl-FieldExpressions=""
                    LabelControl-FieldInfoType="" LabelControl-ID="711c0ece-f146-4a72-aa76-e5df210f2411lbct"
                    LabelControl-LabelType="Designer" LabelType="Designer" ReadOnly="False" SmartScanTypeName=""
                    Text="批次号" TextControl-CssClass="TextMedium" />
            </td>
            <td valign="bottom">
                <fb:DropDownList ID="ddlWorkCenter" runat="server" LabelControl-Text="工区" DataLoadMode="Bound"
                    DependsOn="" DisplayMode="DropDown" ListControl-Width="120px" />
            </td>
            <td valign="bottom">
                <fb:TextBox ID="txtProduct" runat="server" LabelControl-Text="件号" DependsOn="" EnableSmartScan="True"
                    Encryption="True" FieldExpressions="" ForceSubmit="False" HideLabel="False" LabelControl-CssClass="LabelControl"
                    LabelControl-FieldExpressions="" LabelControl-FieldInfoType="" LabelControl-ID="711c0ece-f146-4a72-aa76-e5df210f2411lbct"
                    LabelControl-LabelType="Designer" LabelType="Designer" ReadOnly="False" SmartScanTypeName="" TextControl-Width="120px"
                    Text="件号" TextControl-CssClass="TextMedium" />
            </td>
            <td valign="bottom">
                <fb:TextBox ID="txtProductDesp" runat="server" LabelControl-Text="零件名称" Visible="false" />
            </td>
            <td>
                <fb:DropDownList ID="ddlWorkflow" runat="server" LabelControl-Text="历史工艺路线" DataLoadMode="Bound"
                    DependsOn="" DisplayMode="DropDown" ListControl-Width="250px" />
            </td>
            <td valign="bottom">
                <fb:DropDownList ID="ddlProductFamilyName" runat="server" LabelControl-Text="机型"
                    DataLoadMode="Bound" DependsOn="" DisplayMode="DropDown" ListControl-Width="120px" />
            </td>
            <td valign="bottom">
                <fb:DropDownList ID="ddlInstoreStatus" runat="server" LabelControl-Text="在制状态"
                    DataLoadMode="Bound" DependsOn="" DisplayMode="DropDown" ListControl-Width="80px" />
            </td>
            <td valign="bottom">
                <asp:Panel runat="server" Style="display: none">
                    <fb:Label ID="lbStartDate" runat="server" Text="开卡开始日期" />
                    <input id="txtStartDate" runat="server" onclick="setday(this)" style="border: 1px solid #a5acb2;
                        z-index: 117; height: 23px; width: 85px; float: left" type="text" />
                </asp:Panel>
                <div id="dvDate" style="margin-top: 0px;">
                    <fb:Label ID="lblBeginDate" Text="开卡开始日期" runat="server" Style="position: relative;"></fb:Label>
                    <igsch:WebDateChooser ID="wdcBeginDate" runat="server" Style="position: relative;
                        width: 100px;" ShowDropDown="false" NullDateLabel="">
                        <CalendarLayout>
                            <CalendarStyle ForeColor="#3366CC">
                            </CalendarStyle>
                            <SelectedDayStyle BackColor="#3399FF" />
                            <TitleStyle BackColor="#72AFF3" ForeColor="White" />
                            <TodayDayStyle BackColor="#66CCFF"></TodayDayStyle>
                        </CalendarLayout>
                    </igsch:WebDateChooser>
                </div>
            </td>
            <td valign="bottom">
                <asp:Panel ID="Panel1" runat="server" Style="display: none">
                    <fb:Label ID="lbEndDate" runat="server" Text="开卡结束日期" />
                    <input id="txtEndDate" runat="server" onclick="setday(this)" style="border: 1px solid #a5acb2;
                        z-index: 117; height: 23px; width: 85px; float: left" type="text" />
                </asp:Panel>
                <div id="dvEndDate" style="margin-top: 0px">
                    <fb:Label ID="lblFinishDate" Text="开卡结束日期" runat="server" Style="position: relative;"></fb:Label>
                    <igsch:WebDateChooser ID="wdcFinishDate" runat="server" Style="position: relative;
                        width: 100px;" ShowDropDown="false" NullDateLabel="">
                        <CalendarLayout>
                            <CalendarStyle ForeColor="#3366CC">
                            </CalendarStyle>
                            <SelectedDayStyle BackColor="#3399FF" />
                            <TitleStyle BackColor="#72AFF3" ForeColor="White" />
                            <TodayDayStyle BackColor="#66CCFF"></TodayDayStyle>
                        </CalendarLayout>
                    </igsch:WebDateChooser>
                </div>
            </td>
            <td valign="bottom">
                <fb:Button ID="btnSearch" runat="server" Text="查询" DisplayInFrame="False" />
            </td>
            <td valign="bottom">
                <fb:Button ID="btnReset" runat="server" Text="重置" DisplayInFrame="False" />
            </td>
        </tr>
    </table>
    <h5 style="width: 80px; z-index: 200; left: 3px; position: absolute; top: 100px;">
        工序状态:
    </h5>
    <fb:Label Text="已派工" ID="lblDispatched" runat="server" BackColor="Yellow" Style="z-index: 200;
        left: 70px; position: absolute; top: 100px; height: 21px; width: 80px; line-height: 21px;
        text-align: center;"></fb:Label>
    <fb:Label Text="已报工" ID="lblReported" runat="server" BackColor="Blue" Style="z-index: 200;
        left: 160px; position: absolute; top: 100px; height: 21px; width: 80px; line-height: 21px;
        text-align: center; color: Yellow;"></fb:Label>
    <fb:Label Text="待审理" ID="lblWaitHear" runat="server" BackColor="Aqua" Style="z-index: 200;
        left: 250px; position: absolute; top: 100px; height: 21px; width: 80px; line-height: 21px;
        text-align: center;"></fb:Label>
    <fb:Label Text="已检验" ID="lblHaveChecked" runat="server" BackColor="Green" Style="z-index: 200;
        left: 340px; position: absolute; top: 100px; height: 21px; width: 80px; line-height: 21px;
        text-align: center; color: Yellow;"></fb:Label>
    <fb:Label Text="转工已转出" ID="lblShiped" runat="server" BackColor="LightCoral" Style="z-index: 200;
        left: 430px; position: absolute; top: 100px; height: 21px; width: 80px; line-height: 21px;
        text-align: center;"></fb:Label>
    <fb:Label Text="转工已接收" ID="lblShipHavedAccept" runat="server" BackColor="#99CC00"
        Style="z-index: 200; left: 520px; position: absolute; top: 100px; height: 21px;
        width: 80px; line-height: 21px; text-align: center;" CssClass="LabelControl"
        FieldExpressions="" FieldInfoType="" LabelType="Designer"></fb:Label>
    <fb:Label Text="转工已完成" ID="lblShipHavedFinshed" runat="server" BackColor="DarkOrange"
        Style="z-index: 200; left: 610px; position: absolute; top: 100px; height: 21px;
        width: 80px; line-height: 21px; text-align: center;"></fb:Label>
    <fb:Label Text="转工已转回" ID="lblShipHavedReBack" runat="server" BackColor="Lime" Style="z-index: 200;
        left: 700px; position: absolute; top: 100px; height: 21px; width: 80px; line-height: 21px;
        text-align: center;"></fb:Label>
    <fb:Label Text="外委转出" ID="lblCommissionOut" runat="server" BackColor="#999999" Style="z-index: 200;
        left: 790px; position: absolute; top: 100px; height: 21px; width: 80px; line-height: 21px;
        text-align: center; color: Yellow;"></fb:Label>
    <fb:Label Text="外委转回" ID="lblCommissionIn" runat="server" BackColor="#996633" Style="z-index: 200;
        position: absolute; top: 100px; height: 21px; width: 80px; line-height: 21px;
        left: 880px; text-align: center; color: Yellow;"></fb:Label>
    <fb:Label Text="待处理" ID="lblWaitDoWith" runat="server" BackColor="#CC99FF" Style="z-index: 200;
        position: absolute; top: 100px; height: 21px; width: 80px; line-height: 21px;
        left: 970px; text-align: center;"></fb:Label>
    <fb:Label Text="已完工" ID="lblWSCompleted" runat="server" BackColor="DimGray" Style="z-index: 200;
        position: absolute; top: 100px; height: 21px; width: 80px; line-height: 21px;
        left: 1060px; text-align: center; color: Yellow;"></fb:Label>
    <fb:Label Text="子工艺工序" ID="lblWSNotProceed" runat="server" BackColor="#CC6699" Style="z-index: 200;
        position: absolute; top: 100px; height: 21px; width: 80px; line-height: 21px;
        left: 1150px; text-align: center; color: Yellow;" CssClass="LabelControl" FieldExpressions=""
        FieldInfoType="" LabelType="Designer"></fb:Label>
    <fb:Label Text="▲质量问题" ID="lblQualityIco" runat="server" Style="z-index: 200; left: 1240px;
        position: absolute; top: 100px; height: 21px; width: 80px; font-size: 21px; line-height: 21px;
        text-align: center;"></fb:Label>
    <div class="ufcSectionStyle" style="margin-top: 50px">
        <span class="ufcSectionSpanStyle">零件进度表</span>
    </div>
    <div style="width: 99%; margin: 33px 0 3px 3px; position: relative; left: 0px;">
        <fbg:WebGrid ID="wgResult" runat="server" ColumnLabelsType="Default" Height="440px"
            LabelsType="Designer" RowsPerPage="100" Width="100%">
            <DisplayLayout BorderCollapseDefault="Separate" Name="wgdWorkReportInfo" OptimizeCSSClassNamesOutput="False"
                RowHeightDefault="25px" AllowColSizingDefault="Free" StationaryMargins="Header"
                TableLayout="Fixed" Version="4.00" AutoGenerateColumns="False" AllowRowNumberingDefault="Continuous"
                CellClickActionDefault="RowSelect" SelectTypeRowDefault="Single" AllowSortingDefault="OnClient"
                HeaderClickActionDefault="NotSet">
                <FrameStyle BorderColor="#A5ACB2" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
                    Font-Size="8pt" Height="440px" Width="100%">
                </FrameStyle>
                <RowAlternateStyleDefault CssClass="GridRowAlternateStyle" BackColor="#D6F1FF">
                    <Padding Left="0px" />
                </RowAlternateStyleDefault>
                <ClientSideEvents InitializeLayoutHandler="OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler" />
                <Pager PageSize="100">
                    <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                        <BorderDetails ColorLeft="White" ColorTop="White" />
                    </PagerStyle>
                </Pager>
                <EditCellStyleDefault BorderStyle="None" BorderWidth="0px" CssClass="GridEditCellStyle">
                </EditCellStyleDefault>
                <HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid" CssClass="GridHeaderStyle"
                    Height="100%" Wrap="True">
                    <Padding Bottom="3px" Top="2px" />
                    <BorderDetails ColorLeft="White" ColorTop="White" />
                </HeaderStyleDefault>
                <RowSelectorStyleDefault>
                    <Padding Left="0px" />
                </RowSelectorStyleDefault>
                <RowStyleDefault BackColor="White" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                    CssClass="GridRowStyle" Font-Names="Verdana" Font-Size="8pt">
                    <Padding Left="3px" />
                    <BorderDetails ColorLeft="White" ColorTop="White" />
                </RowStyleDefault>
                <SelectedRowStyleDefault CssClass="GridSelectedRowStyle" BackColor="LightYellow">
                </SelectedRowStyleDefault>
                <AddNewBox>
                    <BoxStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                        <BorderDetails ColorLeft="White" ColorTop="White" />
                    </BoxStyle>
                </AddNewBox>
                <ActivationObject BorderColor="" BorderWidth="">
                </ActivationObject>
            </DisplayLayout>
            <Bands>
                <igtbl:UltraGridBand>
                    <addnewrow view="NotSet" visible="NotSet">
                        </addnewrow>
                    <columns>
                            <igtbl:UltraGridColumn Key ="ContainerNew" BaseColumnName ="ContainerNew" 
                                Width ="120px">
                                <Header Caption ="件号/批次(当前序)">
                                    <RowLayoutColumnInfo OriginX="0"></RowLayoutColumnInfo>
                                </Header>
                                <Footer>
                                    <RowLayoutColumnInfo OriginX="0"></RowLayoutColumnInfo>
                                </Footer>
                            </igtbl:UltraGridColumn>
                        </columns>
                </igtbl:UltraGridBand>
            </Bands>
        </fbg:WebGrid>
        <div style="float: left; width: 50%; top: 8px; position: relative; height: 42px;">
            <h5 style="float: left; width: 80px; left: 3px; position: relative; top: 3px;">
                批次状态:</h5>
            <fb:Label Text="领料中" ID="lblPicking" runat="server" BackColor="OrangeRed" Style="z-index: 200;
                left: 70px; position: absolute; top: 0px; height: 21px; width: 80px; line-height: 21px;
                text-align: center;"></fb:Label>
            <fb:Label Text="已完工" ID="lblContainerCompleted" runat="server" BackColor="#FFCC00"
                Style="z-index: 200; left: 160px; position: absolute; top: 0px; height: 21px;
                width: 80px; line-height: 21px; text-align: center;" CssClass="LabelControl"
                LabelType="Designer" FieldExpressions="" FieldInfoType=""></fb:Label>
            <fb:Label Text="◆已冻结" ID="lblContainerFreezeIco" runat="server" Style="z-index: 200;
                left: 170px; position: relative; top: 0px; height: 21px; width: 80px; font-size: 21px;
                line-height: 21px; text-align: center;" CssClass="LabelControl" LabelType="Designer"></fb:Label>
        </div>
        <div style="position: relative; width: 500px;">
            <uPT:pageTurning ID="upageTurning" runat="server" />
        </div>
    </div>
    <div style="margin-left: 3px;">
        <asp:Label ID="StatusMessage" runat="server" Text="" Width="99%"></asp:Label>
    </div>
    </form>
</body>
</html>
